package com.fcscs.ecms.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fcscs.ecms.domain.GuestRequest;

/**
 * @author pvttinh
 * 
 */

@Repository
public interface ECMSGuestRequestDao {

	/**
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public GuestRequest get(int id) throws Exception;
	
	/**
	 * 
	 * @param orgId
	 * @param propertyId
	 * @param guestProfileId
	 * @param reservationId
	 * @param requestType
	 * @return
	 * @throws Exception
	 */
	public List<GuestRequest> findBy(int orgId, int propertyId,
			int guestProfileId, int reservationId, String requestType) throws Exception;
	
	/**
	 * 
	 * @param orgId
	 * @param propertyId
	 * @param guestProfileId
	 * @param requestType
	 * @return
	 * @throws Exception
	 */
	public List<GuestRequest> findListBy(int orgId, int propertyId,
			int guestProfileId, String requestType) throws Exception;
	
	/**
	 * 
	 * @param gr
	 * @return
	 * @throws Exception
	 */
	public GuestRequest update(GuestRequest gr) throws Exception;
}
